package cn.szabadsag.org.domain;

import cn.szabadsag.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 商铺
 * @author yangcong
 * @date 2022年03月05日 21:37
 */
@Data
public class Shop extends BaseDomain {

    private String name;

    private String tel;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerTime = new Date();

    /**
     * 0表示待审核状态
     * 1    启用
     * -1   禁用
     */
    private Integer state = 0;

    private String address;

    private String city;

    private String logo;

    private Long admin_id;

    private Employee admin;
}
